.gems-message {
    --gems-message-bg-color: var(--gems-color-info-light-9);
    --gems-message-border-color: var(--gems-border-color-lighter);
    --gems-message-padding: 15px 19px;
    --gems-message-close-size: 16px;
    --gems-message-close-icon-color: var(--gems-text-color-placeholder);
    --gems-message-close-hover-color: var(--gems-text-color-secondary);
  }
  .gems-message {
    width: fit-content;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    border-radius: var(--gems-border-radius-base);
    border-width: var(--gems-border-width);
    border-style: var(--gems-border-style);
    border-color: var(--gems-message-border-color);
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background-color: var(--gems-message-bg-color);
    padding: var(--gems-message-padding);
    display: flex;
    align-items: center;
    transition: top var(--gems-transition-duration), opacity var(--gems-transition-duration), transform var(--gems-transition-duration);
    .gems-message__content {
      color: var(--gems-message-text-color);
      overflow-wrap: anywhere;
    }
    &.is-close .gems-message__content {
      padding-right: 30px;
    }
    .gems-message__close {
      display: flex;
      align-items: center;
    }
    .gems-message__close svg {
      cursor: pointer;
    }
  }
  @each $val in info,success,warning,danger { 
    .gems-message--$(val) {
      --gems-message-bg-color: var(--gems-color-$(val)-light-9);
      --gems-message-border-color: var(--gems-color-$(val)-light-8);
      --gems-message-text-color: var(--gems-color-$(val));
      .gems-message__close {
        --gems-icon-color: var(--gems-color-$(val));
      }
    }
  }
  .gems-message.fade-up-enter-from,
  .gems-message.fade-up-leave-to {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  